using System;
using System.CodeDom;
using System.Linq;
using System.Collections;
using System.Collections.Generic;

namespace CodeDom
{
  internal class DefaultFieldPropertyGenerator : TemplateFieldGenerator
  {
    public DefaultFieldPropertyGenerator(TemplateField field)
      : base(field)
    {
    }

    public override void AddValueConversionStatements(CodeExpression itemReference, CodeMemberMethod method)
    {
      method.Statements.Add(
        new CodeMethodReturnStatement(CreateFieldValueExpression(itemReference))
      );
    }

    public override CodeTypeReference GetFieldType()
    {
      return new CodeTypeReference("String");
    }
  }
}